import { createApp,reactive,ref } from 'vue'
import App from './App.vue'
import router from './router'
import {AllRequest} from './utils/allRequest'
import vant,{Dialog} from 'vant'
import 'vant/lib/index.css'
import NavBarHeader from "./components/nav/NavBarHeader.vue" // 头部导航条
import {Tools} from "./utils/Tools"
/* 注册pinia */
import {createPinia} from 'pinia'
import Store from "./store"
const pinia = createPinia();
const app = createApp(App);
app.config.globalProperties.$appName = '开摆吧后台管理系统 - ';
app.config.globalProperties.$AllRequest = AllRequest;
app.config.globalProperties.$Tools = Tools;
app.config.globalProperties.$Dialog = Dialog;
app.config.globalProperties.$homeOption = reactive({}); // 全局设置


app.component('NavBarHeader',NavBarHeader);
app.use(router).use(vant).use(pinia);
app.config.globalProperties.$store = Store();// 全局使用store
app.mount('#app')

